<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::namespace('Backend')->group(function () {
    Route::get('/home', 'HomeController@index')->name('admin.home')->middleware(['auth:manager']);
    Route::get('/', 'HomeController@getLogin');
    Route::get('/updateSchoolData', 'HomeController@updateSchoolData');
    Route::get('/updateMajorData', 'HomeController@updateMajorData');
    Route::get('/updateGradeData', 'HomeController@updateGradeData');
    Route::post('/login', 'HomeController@login');
    Route::get('/logout', 'HomeController@Logout')->name('admin.logout');
    //系统用户操作相关
    Route::group(['prefix' => 'auth', 'namespace' => 'Auth'], function () {
        Route::group(['prefix' => 'module'], function () {
            Route::get('tree', 'ModuleController@tree')->name('admin.auth.module.tree');
            Route::get('list', 'ModuleController@list')->name('admin.auth.module.list');
            Route::get('', 'ModuleController@index')->name('admin.auth.module.index');

            Route::get('{id}/show', 'ModuleController@show')->name('admin.auth.module.show');

            Route::get('create', 'ModuleController@create')->name('admin.auth.module.create');
            Route::post('', 'ModuleController@store')->name('admin.auth.module.store');

            Route::get('{id}/edit', 'ModuleController@edit')->name('admin.auth.module.edit');
            Route::put('{id}/update', 'ModuleController@update')->name('admin.auth.module.update');

            Route::delete('destroy', 'ModuleController@destroy')->name('admin.auth.module.destroy');
        });
        Route::group(['prefix' => 'role'], function () {
            Route::get('list', 'RoleController@list')->name('admin.auth.role.list');
            Route::get('', 'RoleController@index')->name('admin.auth.role.index');

            Route::get('{id}/show', 'RoleController@show')->name('admin.auth.role.show');

            Route::get('{id}/getModules', 'RoleController@getModules')->name('admin.auth.role.getModules');
            Route::get('{id}/permission', 'RoleController@permission')->name('admin.auth.role.permission');
            Route::put('{id}/savePermission', 'RoleController@savePermission')->name('admin.auth.role.permission.save');

            Route::get('create', 'RoleController@create')->name('admin.auth.role.create');
            Route::post('', 'RoleController@store')->name('admin.auth.role.store');

            Route::get('{id}/edit', 'RoleController@edit')->name('admin.auth.role.edit');
            Route::put('{id}/update', 'RoleController@update')->name('admin.auth.role.update');

            Route::delete('destroy', 'RoleController@destroy')->name('admin.auth.role.destroy');
        });
        Route::group(['prefix' => 'manager'], function () {
            Route::get('list', 'ManagerController@list')->name('admin.auth.manager.list');
            Route::get('', 'ManagerController@index')->name('admin.auth.manager.index');

            Route::get('{id}/role', 'ManagerController@role')->name('admin.auth.manager.role');
            Route::put('{id}/save_role', 'ManagerController@saveRole')->name('admin.auth.manager.role.save');

            Route::get('{id}/{type}/password', 'ManagerController@password')->name('admin.auth.manager.password');
            Route::put('{id}/{type}/change_password', 'ManagerController@changePassword')->name('admin.auth.manager.password.change');

            Route::get('{id}/show', 'ManagerController@show')->name('admin.auth.manager.show');

            Route::get('create', 'ManagerController@create')->name('admin.auth.manager.create');
            Route::post('', 'ManagerController@store')->name('admin.auth.manager.store');

            Route::get('{id}/edit', 'ManagerController@edit')->name('admin.auth.manager.edit');
            Route::put('{id}/update', 'ManagerController@update')->name('admin.auth.manager.update');

            Route::delete('destroy', 'ManagerController@destroy')->name('admin.auth.manager.destroy');
        });
        Route::group(['prefix' => 'module_button'], function () {
            Route::get('/list', 'ModuleButtonController@list')->name('admin.auth.module.button.list');
            Route::get('{module_id}/tree', 'ModuleButtonController@tree')->name('admin.auth.module.button.tree');
            Route::get('{module_id}', 'ModuleButtonController@index')->name('admin.auth.module.button.index');

            Route::get('{id}/show', 'ModuleButtonController@show')->name('admin.auth.module.button.show');

            Route::get('{module_id}/create', 'ModuleButtonController@create')->name('admin.auth.module.button.create');
            Route::post('', 'ModuleButtonController@store')->name('admin.auth.module.button.store');

            Route::get('{id}/edit', 'ModuleButtonController@edit')->name('admin.auth.module.button.edit');
            Route::put('{id}/update', 'ModuleButtonController@update')->name('admin.auth.module.button.update');

            Route::delete('destroy', 'ModuleButtonController@destroy')->name('admin.auth.module.button.destroy');
        });
    });



    //多余的
    Route::group(['prefix' => 'base', 'namespace' => 'Base'], function () {
        Route::group(['prefix' => 'college'], function () {
            Route::get('list', 'CollegeController@list')->name('admin.base.college.list');
            Route::get('', 'CollegeController@index')->name('admin.base.college.index');

            Route::get('getTagsByCollegeId', 'CollegeController@getTagsByCollegeId')->name('admin.base.college.getTags');

            Route::get('tag', 'CollegeController@tag')->name('admin.base.college.tag');
            Route::get('level', 'CollegeController@level')->name('admin.base.college.level');

            Route::get('getCollegeByLevel', 'CollegeController@getCollegesByLevel')->name('admin.base.college.getCollegeByLevel');
            Route::post('saveCollegeLevel', 'CollegeController@saveCollegeLevel')->name('admin.base.college.saveCollegeLevel');
            Route::get('getCollegeByTag', 'CollegeController@getCollegeByTag')->name('admin.base.college.getCollegeByTag');
            Route::post('saveCollegeTag', 'CollegeController@saveCollegeTag')->name('admin.base.college.saveCollegeTag');

            Route::get('create', 'CollegeController@create')->name('admin.base.college.create');
            Route::post('', 'CollegeController@store')->name('admin.base.college.store');
            Route::get('{id}/{is_china}/edit', 'CollegeController@edit')->name('admin.base.college.edit');
            Route::put('{id}/update', 'CollegeController@update')->name('admin.base.college.update');
            Route::get('{id}/{is_china}/show', 'CollegeController@show')->name('admin.base.college.show');

            Route::delete('destroy', 'CollegeController@destroy')->name('admin.base.college.destroy');
        });
        Route::group(['prefix' => 'company'], function () {
            Route::get('getIndustries', 'CompanyController@getIndustries')->name('admin.base.company.industry');

            Route::get('list', 'CompanyController@list')->name('admin.base.company.list');
            Route::get('', 'CompanyController@index')->name('admin.base.company.index');

            Route::get('tags', 'CompanyController@tags')->name('admin.base.company.tags');
            Route::get('level', 'CompanyController@level')->name('admin.base.company.level');

            Route::get('getCompanyByLevel', 'CompanyController@getCompaniesByLevel')->name('admin.base.company.getCompanyByLevel');
            Route::post('saveCompanyLevel', 'CompanyController@saveCompanyLevel')->name('admin.base.company.saveCompanyLevel');
            Route::get('getCompaniesByTags', 'CompanyController@getCompaniesByTags')->name('admin.base.company.getCompanyByTags');
            Route::post('saveCompanyTag', 'CompanyController@saveCompanyTag')->name('admin.base.company.saveCompanyTag');

            Route::get('allCountryData', 'CompanyController@allCountryData')->name('admin.base.company.allCountryData');

            Route::get('{id}/show', 'CompanyController@show')->name('admin.base.company.show');

            Route::get('create', 'CompanyController@create')->name('admin.base.company.create');
            Route::post('', 'CompanyController@store')->name('admin.base.company.store');

            Route::get('{id}/edit', 'CompanyController@edit')->name('admin.base.company.edit');
            Route::put('{id}/update', 'CompanyController@update')->name('admin.base.company.update');

            Route::put('increment', 'CompanyController@increment')->name('admin.base.company.increment');
            Route::put('decrement', 'CompanyController@decrement')->name('admin.base.company.decrement');

            Route::delete('destroy', 'CompanyController@destroy')->name('admin.base.company.destroy');
        });
        Route::group(['prefix' => 'procity'], function () {
            Route::get('', 'ProcityController@index')->name('admin.base.procity.index');
            Route::get('getAllData', 'ProcityController@getAllData')->name('admin.base.procity.getAllData');

            Route::get('create', 'ProcityController@create')->name('admin.base.procity.create');
            Route::post('', 'ProcityController@store')->name('admin.base.procity.store');

            Route::get('{id}/edit', 'ProcityController@edit')->name('admin.base.procity.edit');
            Route::put('{id}/update', 'ProcityController@update')->name('admin.base.procity.update');

            Route::get('{id}/show', 'ProcityController@show')->name('admin.base.procity.show');

            Route::delete('destroy', 'ProcityController@destroy')->name('admin.base.procity.destroy');

            Route::put('increment', 'ProcityController@increment')->name('admin.base.procity.increment');
            Route::put('decrement', 'ProcityController@decrement')->name('admin.base.procity.decrement');
            Route::get('tags', 'ProcityController@tags')->name('admin.base.procity.tags');

            Route::get('datasByTier', 'ProcityController@getDatasByTier')->name('admin.base.procity.getDatasByTier');
            Route::post('saveProcityTier', 'ProcityController@saveProcityTier')->name('admin.base.procity.saveProcityTier');
        });
        Route::group(['prefix' => 'subject'], function () {
            Route::get('tree', 'SubjectController@tree')->name('admin.base.subject.tree');
            Route::get('list', 'SubjectController@list')->name('admin.base.subject.list');
            Route::get('pageList', 'SubjectController@pageList')->name('admin.base.subject.pageList');
            Route::get('other', 'SubjectController@other')->name('admin.base.subject.index.other');
            Route::get('', 'SubjectController@index')->name('admin.base.subject.index');

            Route::get('{id}/show', 'SubjectController@show')->name('admin.base.subject.show');

            Route::get('create', 'SubjectController@create')->name('admin.base.subject.create');
            Route::post('', 'SubjectController@store')->name('admin.base.subject.store');

            Route::get('{id}/edit', 'SubjectController@edit')->name('admin.base.subject.edit');
            Route::put('{id}/update', 'SubjectController@update')->name('admin.base.subject.update');

            Route::delete('destroy', 'SubjectController@destroy')->name('admin.base.subject.destroy');
        });
        Route::group(['prefix' => 'station'], function () {
            Route::get('pageList', 'StationController@pageList')->name('admin.base.station.pageList');
            Route::get('list', 'StationController@list')->name('admin.base.station.list');
            Route::get('', 'StationController@index')->name('admin.base.station.index');
            Route::get('types', 'StationController@getTypes')->name('admin.base.station.types');

            Route::get('{id}/show', 'StationController@show')->name('admin.base.station.show');
            Route::get('create', 'StationController@create')->name('admin.base.station.create');
            Route::post('', 'StationController@store')->name('admin.base.station.store');
            Route::get('{id}/edit', 'StationController@edit')->name('admin.base.station.edit');
            Route::put('{id}/update', 'StationController@update')->name('admin.base.station.update');
            Route::delete('destroy', 'StationController@destroy')->name('admin.base.station.destroy');
            Route::put('increment', 'StationController@increment')->name('admin.base.station.increment');
            Route::put('decrement', 'StationController@decrement')->name('admin.base.station.decrement');
        });
        Route::group(['prefix' => 'industry'], function () {
            Route::get('pageList', 'IndustryController@pageList')->name('admin.base.industry.pageList');
            Route::get('getAllData', 'IndustryController@getAllData')->name('admin.base.industry.getAllData');
            Route::get('', 'IndustryController@index')->name('admin.base.industry.index');
            Route::get('tree', 'IndustryController@tree')->name('admin.base.industry.tree');
            Route::post('', 'IndustryController@store')->name('admin.base.industry.store');
            Route::get('{id}/{is_tags}/show', 'IndustryController@show')->name('admin.base.industry.show');
            Route::get('create', 'IndustryController@create')->name('admin.base.industry.create');
            Route::get('{id}/{is_tags}/edit', 'IndustryController@edit')->name('admin.base.industry.edit');
            Route::put('{id}/update', 'IndustryController@update')->name('admin.base.industry.update');
            Route::delete('destroy', 'IndustryController@destroy')->name('admin.base.industry.destroy');
            Route::put('increment', 'IndustryController@increment')->name('admin.base.industry.increment');
            Route::put('decrement', 'IndustryController@decrement')->name('admin.base.industry.decrement');
        });
        Route::group(['prefix' => 'dataitem'], function () {
            Route::group([], function () {
                Route::get('list', 'DataItemController@list')->name('admin.base.dataitem.list');
                Route::get('tree', 'DataItemController@tree')->name('admin.base.dataitem.tree');
                Route::get('', 'DataItemController@index')->name('admin.base.dataitem.index');
                Route::get('table', 'DataItemController@table')->name('admin.base.dataitem.table');

                Route::get('{id}/show', 'DataItemController@show')->name('admin.base.dataitem.show');
                Route::get('{code}/point', 'DataItemController@point')->name('admin.base.dataitem.point');
                Route::get('create', 'DataItemController@create')->name('admin.base.dataitem.create');
                Route::post('', 'DataItemController@store')->name('admin.base.dataitem.store');

                Route::get('{id}/edit', 'DataItemController@edit')->name('admin.base.dataitem.edit');
                Route::put('{id}/update', 'DataItemController@update')->name('admin.base.dataitem.update');

                Route::delete('destroy', 'DataItemController@destroy')->name('admin.base.dataitem.destroy');
                Route::put('increment', 'DataItemController@increment')->name('admin.base.dataitem.increment');
                Route::put('decrement', 'DataItemController@decrement')->name('admin.base.dataitem.decrement');
            });
            Route::group(['prefix' => 'detail'], function () {
                Route::get('getTree', 'DataItemDetailController@getTreeByItemCode')->name('admin.base.dataitem.detail.tree');
                Route::get('list', 'DataItemDetailController@list')->name('admin.base.dataitem.detail.list');
                Route::get('{id}/show', 'DataItemDetailController@show')->name('admin.base.dataitem.detail.show');

                Route::get('create/{item_id}', 'DataItemDetailController@create')->name('admin.base.dataitem.detail.create');
                Route::post('', 'DataItemDetailController@store')->name('admin.base.dataitem.detail.store');

                Route::get('{id}/edit', 'DataItemDetailController@edit')->name('admin.base.dataitem.detail.edit');
                Route::put('{id}/update', 'DataItemDetailController@update')->name('admin.base.dataitem.detail.update');

                Route::delete('destroy', 'DataItemDetailController@destroy')->name('admin.base.dataitem.detail.destroy');
                Route::put('increment', 'DataItemDetailController@increment')->name('admin.base.dataitem.detail.increment');
                Route::put('decrement', 'DataItemDetailController@decrement')->name('admin.base.dataitem.detail.decrement');
            });
        });
    });
    Route::group(['prefix' => 'business', 'namespace' => 'Business'], function () {
        Route::group(['prefix' => 'member'], function () {
            Route::get('list', 'MemberController@list')->name('admin.business.member.list');
            Route::get('', 'MemberController@index')->name('admin.business.member.index');

            Route::get('{id}/show', 'MemberController@show')->name('admin.business.member.show');
        });
        Route::group(['prefix' => 'mentor'], function () {
            Route::group([], function () {
                Route::get('list', 'MentorController@list')->name('admin.business.mentor.list');
                Route::get('', 'MentorController@index')->name('admin.business.mentor.index');

                Route::get('{id}/show', 'MentorController@show')->name('admin.business.mentor.show');

                Route::get('create', 'MentorController@create')->name('admin.business.mentor.create');
                Route::post('', 'MentorController@store')->name('admin.business.mentor.store');

                Route::get('{id}/edit', 'MentorController@edit')->name('admin.business.mentor.edit');
                Route::put('{id}/update', 'MentorController@update')->name('admin.business.mentor.update');

                Route::get('{id}/audit', 'MentorController@audit')->name('admin.business.mentor.audit');
                Route::put('{id}/update_audit', 'MentorController@updateAudit')->name('admin.business.mentor.update.audit');

                Route::get('{id}/tag', 'MentorController@tag')->name('admin.business.mentor.tag');
                Route::put('{id}/update_tag', 'MentorController@updateTag')->name('admin.business.mentor.update.tag');

                Route::delete('destroy', 'MentorController@destroy')->name('admin.business.mentor.destroy');
            });
            Route::group(['prefix' => 'apply'], function () {
                Route::get('list', 'MentorApplyController@list')->name('admin.business.mentor.apply.list');
                Route::get('tree', 'MentorApplyController@tree')->name('admin.business.mentor.apply.tree');
                Route::get('', 'MentorApplyController@index')->name('admin.business.mentor.apply.index');

                Route::get('{id}/show', 'MentorApplyController@show')->name('admin.business.mentor.apply.show');

                Route::get('create', 'MentorApplyController@create')->name('admin.business.mentor.apply.create');
                Route::post('', 'MentorApplyController@store')->name('admin.business.mentor.apply.store');

                Route::get('{id}/edit', 'MentorApplyController@edit')->name('admin.business.mentor.apply.edit');
                Route::put('{id}/update', 'MentorApplyController@update')->name('admin.business.mentor.apply.update');

                Route::delete('destroy', 'MentorApplyController@destroy')->name('admin.business.mentor.apply.destroy');
            });
            Route::group(['prefix' => 'category'], function () {
                Route::get('list', 'MentorCategoryController@list')->name('admin.business.mentor.category.list');
                Route::get('tree', 'MentorCategoryController@tree')->name('admin.business.mentor.category.tree');
                Route::get('', 'MentorCategoryController@index')->name('admin.business.mentor.category.index');

                Route::get('{id}/show', 'MentorCategoryController@show')->name('admin.business.mentor.category.show');

                Route::get('create', 'MentorCategoryController@create')->name('admin.business.mentor.category.create');
                Route::post('', 'MentorCategoryController@store')->name('admin.business.mentor.category.store');

                Route::get('{id}/edit', 'MentorCategoryController@edit')->name('admin.business.mentor.category.edit');
                Route::put('{id}/update', 'MentorCategoryController@update')->name('admin.business.mentor.category.update');

                Route::delete('destroy', 'MentorCategoryController@destroy')->name('admin.business.mentor.category.destroy');
            });
            Route::group(['prefix' => 'recommended'], function () {
                Route::get('list', 'RecommendedMentorController@list')->name('admin.business.mentor.recommended.list');
                Route::get('', 'RecommendedMentorController@index')->name('admin.business.mentor.recommended.index');

                Route::get('{id}/show', 'RecommendedMentorController@show')->name('admin.business.mentor.recommended.show');

                Route::get('create', 'RecommendedMentorController@create')->name('admin.business.mentor.recommended.create');
                Route::post('', 'RecommendedMentorController@store')->name('admin.business.mentor.recommended.store');

                Route::get('{id}/edit', 'RecommendedMentorController@edit')->name('admin.business.mentor.recommended.edit');
                Route::put('{id}/update', 'RecommendedMentorController@update')->name('admin.business.mentor.recommended.update');

                Route::delete('destroy', 'RecommendedMentorController@destroy')->name('admin.business.mentor.recommended.destroy');
            });
        });
        Route::group(['prefix' => 'enterprise'], function () {
            Route::get('list', 'EnterpriseController@list')->name('admin.business.enterprise.list');
            Route::get('', 'EnterpriseController@index')->name('admin.business.enterprise.index');

            Route::get('{id}/show', 'EnterpriseController@show')->name('admin.business.enterprise.show');

            Route::get('create', 'EnterpriseController@create')->name('admin.business.enterprise.create');
            Route::post('', 'EnterpriseController@store')->name('admin.business.enterprise.store');

            Route::get('{id}/edit', 'EnterpriseController@edit')->name('admin.business.enterprise.edit');
            Route::put('{id}/update', 'EnterpriseController@update')->name('admin.business.enterprise.update');

            Route::delete('destroy', 'EnterpriseController@destroy')->name('admin.business.enterprise.destroy');
        });
        Route::group(['prefix' => 'lesson'], function () {
            Route::group([], function () {
                Route::get('list', 'LessonController@list')->name('admin.business.lesson.list');
                Route::get('', 'LessonController@index')->name('admin.business.lesson.index');

                Route::get('{id}/show', 'LessonController@show')->name('admin.business.lesson.show');

                Route::get('create', 'LessonController@create')->name('admin.business.lesson.create');
                Route::post('', 'LessonController@store')->name('admin.business.lesson.store');

                Route::get('{id}/edit', 'LessonController@edit')->name('admin.business.lesson.edit');
                Route::put('{id}/update', 'LessonController@update')->name('admin.business.lesson.update');

                Route::delete('destroy', 'LessonController@destroy')->name('admin.business.lesson.destroy');
            });
            Route::group(['prefix' => 'category'], function () {
                Route::get('list', 'LessonCategoryController@list')->name('admin.business.lesson.category.list');
                Route::get('', 'LessonCategoryController@index')->name('admin.business.lesson.category.index');

                Route::get('{id}/show', 'LessonCategoryController@show')->name('admin.business.lesson.category.show');

                Route::get('create', 'LessonCategoryController@create')->name('admin.business.lesson.category.create');
                Route::post('', 'LessonCategoryController@store')->name('admin.business.lesson.category.store');

                Route::get('{id}/edit', 'LessonCategoryController@edit')->name('admin.business.lesson.category.edit');
                Route::put('{id}/update', 'LessonCategoryController@update')->name('admin.business.lesson.category.update');

                Route::delete('destroy', 'LessonCategoryController@destroy')->name('admin.business.lesson.category.destroy');
            });
            Route::group(['prefix' => 'recommended'], function () {
                Route::get('list', 'RecommendedLessonController@list')->name('admin.business.lesson.recommended.list');
                Route::get('', 'RecommendedLessonController@index')->name('admin.business.lesson.recommended.index');

                Route::get('{id}/show', 'RecommendedLessonController@show')->name('admin.business.lesson.recommended.show');

                Route::get('create', 'RecommendedLessonController@create')->name('admin.business.lesson.recommended.create');
                Route::post('', 'RecommendedLessonController@store')->name('admin.business.lesson.recommended.store');

                Route::get('{id}/edit', 'RecommendedLessonController@edit')->name('admin.business.lesson.recommended.edit');
                Route::put('{id}/update', 'RecommendedLessonController@update')->name('admin.business.lesson.recommended.update');

                Route::delete('destroy', 'RecommendedLessonController@destroy')->name('admin.business.lesson.recommended.destroy');
            });
        });
        Route::group(['prefix' => 'media_report'], function () {
            Route::get('list', 'MediaReportController@list')->name('admin.business.media.report.list');
            Route::get('', 'MediaReportController@index')->name('admin.business.media.report.index');

            Route::get('{id}/show', 'MediaReportController@show')->name('admin.business.media.report.show');

            Route::get('create', 'MediaReportController@create')->name('admin.business.media.report.create');
            Route::post('', 'MediaReportController@store')->name('admin.business.media.report.store');

            Route::get('{id}/edit', 'MediaReportController@edit')->name('admin.business.media.report.edit');
            Route::put('{id}/update', 'MediaReportController@update')->name('admin.business.media.report.update');

            Route::delete('destroy', 'MediaReportController@destroy')->name('admin.business.media.report.destroy');
        });
        Route::group(['prefix' => 'unified_order'], function () {
            Route::get('list', 'UnifiedOrderController@list')->name('admin.business.unified.order.list');
            // Route::get('', 'UnifiedOrderController@index')->name('admin.business.unified.order.index');

        // Route::get('{id}/show', 'UnifiedOrderController@show')->name('admin.business.unified.order.show');

        // Route::get('create', 'UnifiedOrderController@create')->name('admin.business.unified.order.create');
        // Route::post('', 'UnifiedOrderController@store')->name('admin.business.unified.order.store');

        // Route::get('{id}/edit', 'UnifiedOrderController@edit')->name('admin.business.unified.order.edit');
        // Route::put('{id}/update', 'UnifiedOrderController@update')->name('admin.business.unified.order.update');

        // Route::delete('destroy', 'UnifiedOrderController@destroy')->name('admin.business.unified.order.destroy');
        });
        Route::group(['prefix' => 'mbti'], function () {
            Route::group([], function () {
                Route::get('list', 'MbtiController@list')->name('admin.business.mbti.list');
                Route::get('', 'MbtiController@index')->name('admin.business.mbti.index');

                Route::get('{id}/show', 'MbtiController@show')->name('admin.business.mbti.show');

                Route::get('create', 'MbtiController@create')->name('admin.business.mbti.create');
                Route::post('', 'MbtiController@store')->name('admin.business.mbti.store');

                Route::get('{id}/edit', 'MbtiController@edit')->name('admin.business.mbti.edit');
                Route::put('{id}/update', 'MbtiController@update')->name('admin.business.mbti.update');

                Route::delete('destroy', 'MbtiController@destroy')->name('admin.business.mbti.destroy');
            });
            Route::group(['prefix' => 'user_result'], function () {
                Route::get('list', 'MbtiUserResultController@list')->name('admin.business.mbti.user.result.list');
                Route::get('', 'MbtiUserResultController@index')->name('admin.business.mbti.user.result.index');

                Route::get('export', 'MbtiUserResultController@export')->name('admin.business.mbti.user.result.export');
                Route::get('{id}/show', 'MbtiUserResultController@show')->name('admin.business.mbti.user.result.show');

                Route::get('create', 'MbtiUserResultController@create')->name('admin.business.mbti.user.result.create');
                Route::post('', 'MbtiUserResultController@store')->name('admin.business.mbti.user.result.store');

                Route::get('{id}/edit', 'MbtiUserResultController@edit')->name('admin.business.mbti.user.result.edit');
                Route::put('{id}/update', 'MbtiUserResultController@update')->name('admin.business.mbti.user.result.update');

                Route::delete('destroy', 'MbtiUserResultController@destroy')->name('admin.business.mbti.user.result.destroy');
            });
            Route::group(['prefix' => 'unified_order', 'middleware' => 'type:mbti'], function () {
                Route::get('', 'UnifiedOrderController@index')->name('admin.business.mbti.unified.order.index');
            });
        });
        Route::group(['prefix' => 'carousel'], function () {
            Route::group(['prefix' => 'employment', 'middleware' => 'type:employment'], function () {
                Route::get('', 'CarouselController@index')->name('admin.business.carousel.employment.index');

                Route::get('create', 'CarouselController@create')->name('admin.business.carousel.employment.create');
            });
            Route::group(['prefix' => 'lesson', 'middleware' => 'type:lesson'], function () {
                Route::get('', 'CarouselController@index')->name('admin.business.carousel.lesson.index');

                Route::get('create', 'CarouselController@create')->name('admin.business.carousel.lesson.create');
            });
            Route::group(['prefix' => 'question', 'middleware' => 'type:question'], function () {
                Route::get('', 'CarouselController@index')->name('admin.business.carousel.question.index');

                Route::get('create', 'CarouselController@create')->name('admin.business.carousel.question.create');
            });

            Route::get('list', 'CarouselController@list')->name('admin.business.carousel.list');
            Route::get('{id}/show', 'CarouselController@show')->name('admin.business.carousel.show');
            Route::post('', 'CarouselController@store')->name('admin.business.carousel.store');

            Route::get('{id}/edit', 'CarouselController@edit')->name('admin.business.carousel.edit');
            Route::put('{id}/update', 'CarouselController@update')->name('admin.business.carousel.update');

            Route::delete('destroy', 'CarouselController@destroy')->name('admin.business.carousel.destroy');
        });
    });
    Route::group(['prefix' => 'resume', 'namespace' => 'Resume'], function () {
        Route::group(['prefix' => 'block'], function () {
            Route::get('tree', 'BlockController@tree')->name('admin.resume.block.tree');

            Route::get('pageList', 'BlockController@pageList')->name('admin.resume.block.pageList');
            Route::get('list', 'BlockController@list')->name('admin.resume.block.list');
            Route::get('', 'BlockController@index')->name('admin.resume.block.index');

            Route::get('{id}/show', 'BlockController@show')->name('admin.resume.block.show');
            Route::get('create', 'BlockController@create')->name('admin.resume.block.create');
            Route::post('', 'BlockController@store')->name('admin.resume.block.store');

            Route::get('{id}/edit', 'BlockController@edit')->name('admin.resume.block.edit');
            Route::put('{id}/update', 'BlockController@update')->name('admin.resume.block.update');

            Route::put('increment', 'BlockController@increment')->name('admin.resume.block.increment');
            Route::put('decrement', 'BlockController@decrement')->name('admin.resume.block.decrement');

            Route::delete('destroy', 'BlockController@destroy')->name('admin.resume.block.destroy');
        });
        Route::group(['prefix' => 'evaluation'], function () {
            Route::group(['prefix' => 'config'], function () {
                Route::get('pageList', 'EvaluationConfigController@pageList')->name('admin.resume.evaluation.config.pageList');
                Route::get('', 'EvaluationConfigController@index')->name('admin.resume.evaluation.config.index');

                Route::get('{id}/show', 'EvaluationConfigController@show')->name('admin.resume.evaluation.config.show');
                Route::get('create', 'EvaluationConfigController@create')->name('admin.resume.evaluation.config.create');
                Route::post('', 'EvaluationConfigController@store')->name('admin.resume.evaluation.config.store');
                Route::get('{id}/edit', 'EvaluationConfigController@edit')->name('admin.resume.evaluation.config.edit');
                Route::put('{id}/update', 'EvaluationConfigController@update')->name('admin.resume.evaluation.config.update');
                Route::delete('destroy', 'EvaluationConfigController@destroy')->name('admin.resume.evaluation.config.destroy');
                Route::put('increment', 'EvaluationConfigController@increment')->name('admin.resume.evaluation.config.increment');
                Route::put('decrement', 'EvaluationConfigController@decrement')->name('admin.resume.evaluation.config.decrement');
                Route::put('defaults', 'EvaluationConfigController@defaults')->name('admin.resume.evaluation.config.defaults');
                Route::put('status', 'EvaluationConfigController@status')->name('admin.resume.evaluation.config.status');
                Route::group(['prefix' => 'contents'], function () {
                    Route::get('', 'EvaluationConfigContentController@index')->name('admin.resume.evaluation.config.content.index');
                    Route::get('items', 'EvaluationConfigContentController@getItems')->name('admin.resume.evaluation.config.content.items');

                    Route::post('', 'EvaluationConfigContentController@store')->name('admin.resume.evaluation.config.content.store');
                });
            });
        });
        Route::group(['prefix' => 'suggest'], function () {
            Route::get('pageList', 'SuggestController@pageList')->name('admin.resume.suggest.pageList');
            Route::get('', 'SuggestController@index')->name('admin.resume.suggest.index');
            Route::post('', 'SuggestController@store')->name('admin.resume.suggest.store');
            Route::get('{id}/show', 'SuggestController@show')->name('admin.resume.suggest.show');
            Route::get('create', 'SuggestController@create')->name('admin.resume.suggest.create');
            Route::get('{id}/edit', 'SuggestController@edit')->name('admin.resume.suggest.edit');
            Route::put('{id}/update', 'SuggestController@update')->name('admin.resume.suggest.update');
            Route::delete('destroy', 'SuggestController@destroy')->name('admin.resume.suggest.destroy');
            Route::put('increment', 'SuggestController@increment')->name('admin.resume.suggest.increment');
            Route::put('decrement', 'SuggestController@decrement')->name('admin.resume.suggest.decrement');
        });
        Route::group(['prefix' => 'template'], function () {
            Route::get('pageList', 'TemplateController@pageList')->name('admin.resume.template.pageList');
            Route::get('', 'TemplateController@index')->name('admin.resume.template.index');
            Route::post('', 'TemplateController@store')->name('admin.resume.template.store');
            Route::get('{id}/show', 'TemplateController@show')->name('admin.resume.template.show');
            Route::get('create', 'TemplateController@create')->name('admin.resume.template.create');
            Route::get('{id}/edit', 'TemplateController@edit')->name('admin.resume.template.edit');
            Route::put('{id}/update', 'TemplateController@update')->name('admin.resume.template.update');
            Route::delete('destroy', 'TemplateController@destroy')->name('admin.resume.template.destroy');
            Route::put('increment', 'TemplateController@increment')->name('admin.resume.template.increment');
            Route::put('decrement', 'TemplateController@decrement')->name('admin.resume.template.decrement');
        });
        Route::group(['prefix' => 'tip'], function () {
            Route::get('pageList', 'TipController@pageList')->name('admin.resume.tip.pageList');
            Route::get('', 'TipController@index')->name('admin.resume.tip.index');
            Route::post('', 'TipController@store')->name('admin.resume.tip.store');
            Route::get('{id}/show', 'TipController@show')->name('admin.resume.tip.show');
            Route::get('create', 'TipController@create')->name('admin.resume.tip.create');
            Route::get('{id}/edit', 'TipController@edit')->name('admin.resume.tip.edit');
            Route::put('{id}/update', 'TipController@update')->name('admin.resume.tip.update');
            Route::delete('destroy', 'TipController@destroy')->name('admin.resume.tip.destroy');
            Route::put('increment', 'TipController@increment')->name('admin.resume.tip.increment');
            Route::put('decrement', 'TipController@decrement')->name('admin.resume.tip.decrement');
        });
        Route::group(['prefix' => 'relation'], function () {
            Route::get('pageList', 'RelationController@pageList')->name('admin.resume.relation.pageList');
            Route::get('list', 'RelationController@list')->name('admin.resume.relation.list');
            Route::get('', 'RelationController@index')->name('admin.resume.relation.index');
            Route::get('{id}/show', 'RelationController@show')->name('admin.resume.relation.show');
            Route::get('create', 'RelationController@create')->name('admin.resume.relation.create');
            Route::post('', 'RelationController@store')->name('admin.resume.relation.store');
            Route::get('{id}/edit', 'RelationController@edit')->name('admin.resume.relation.edit');
            Route::put('{id}/update', 'RelationController@update')->name('admin.resume.relation.update');
            Route::delete('destroy', 'RelationController@destroy')->name('admin.resume.relation.destroy');
            Route::group(['prefix' => 'related'], function () {
                Route::get('{id}/pageList', 'RelationController@relatedPageList')->name('admin.resume.relation.related.pageList');
                Route::get('{id}', 'RelationController@relatedIndex')->name('admin.resume.relation.related.index');
                Route::get('{id}/create', 'RelationController@relatedCreate')->name('admin.resume.relation.related.create');
                Route::post('{id}', 'RelationController@relatedStore')->name('admin.resume.relation.related.store');
                Route::delete('destroy', 'RelationController@relatedDestroy')->name('admin.resume.relation.related.destroy');
            });
        });
        Route::group(['prefix' => 'station_type'], function () {
            Route::get('pageList', 'StationTypeController@pageList')->name('admin.resume.station_type.pageList');
            Route::get('list', 'StationTypeController@list')->name('admin.resume.station_type.list');
            Route::get('', 'StationTypeController@index')->name('admin.resume.station_type.index');
            Route::get('{id}/show', 'StationTypeController@show')->name('admin.resume.station_type.show');
            Route::get('create', 'StationTypeController@create')->name('admin.resume.station_type.create');
            Route::post('', 'StationTypeController@store')->name('admin.resume.station_type.store');
            Route::get('{id}/edit', 'StationTypeController@edit')->name('admin.resume.station_type.edit');
            Route::put('{id}/update', 'StationTypeController@update')->name('admin.resume.station_type.update');
            Route::delete('destroy', 'StationTypeController@destroy')->name('admin.resume.station_type.destroy');
            Route::get('{id}/type', 'StationTypeController@type')->name('admin.resume.station_type.type');
            Route::get('{id}/typeList', 'StationTypeController@getTypeList')->name('admin.resume.station_type.list.type');
            Route::post('{id}/type', 'StationTypeController@saveType')->name('admin.resume.station_type.store.type');
        });
        Route::group(['prefix' => 'thesaurus'], function () {
            Route::get('pageList', 'ThesaurusController@pageList')->name('admin.resume.thesaurus.pageList');
            Route::get('list', 'ThesaurusController@list')->name('admin.resume.thesaurus.list');
            Route::get('', 'ThesaurusController@index')->name('admin.resume.thesaurus.index');

            Route::get('{id}/show', 'ThesaurusController@show')->name('admin.resume.thesaurus.show');
            Route::get('create', 'ThesaurusController@create')->name('admin.resume.thesaurus.create');
            Route::post('', 'ThesaurusController@store')->name('admin.resume.thesaurus.store');

            Route::get('{id}/edit', 'ThesaurusController@edit')->name('admin.resume.thesaurus.edit');
            Route::put('{id}/update', 'ThesaurusController@update')->name('admin.resume.thesaurus.update');
            Route::delete('destroy', 'ThesaurusController@destroy')->name('admin.resume.thesaurus.destroy');
        });
        Route::group(['prefix' => 'skill_pool'], function () {
            Route::get('pageList', 'SkillPoolController@pageList')->name('admin.resume.skill_pool.pageList');
            Route::get('list', 'SkillPoolController@list')->name('admin.resume.skill_pool.list');
            Route::get('', 'SkillPoolController@index')->name('admin.resume.skill_pool.index');
            Route::get('{id}/show', 'SkillPoolController@show')->name('admin.resume.skill_pool.show');
            Route::get('create', 'SkillPoolController@create')->name('admin.resume.skill_pool.create');
            Route::post('', 'SkillPoolController@store')->name('admin.resume.skill_pool.store');
            Route::get('{id}/edit', 'SkillPoolController@edit')->name('admin.resume.skill_pool.edit');
            Route::put('{id}/update', 'SkillPoolController@update')->name('admin.resume.skill_pool.update');
            Route::put('increment', 'SkillPoolController@increment')->name('admin.resume.skill_pool.increment');
            Route::put('decrement', 'SkillPoolController@decrement')->name('admin.resume.skill_pool.decrement');
        });
        Route::group(['prefix' => 'award'], function () {
            Route::get('', 'AwardController@index')->name('admin.resume.award.index');
            Route::get('pageList', 'AwardController@pageList')->name('admin.resume.award.pageList');
            Route::get('level', 'AwardController@level')->name('admin.resume.award.level');
            Route::get('getAwardByLevel', 'AwardController@getAwardByLevel')->name('admin.resume.award.getAwardByLevel');
            Route::post('saveAwardLevel', 'AwardController@saveAwardLevel')->name('admin.resume.award.saveAwardLevel');
            Route::get('{id}/show', 'AwardController@show')->name('admin.resume.award.show');
            Route::get('create', 'AwardController@create')->name('admin.resume.award.create');
            Route::post('', 'AwardController@store')->name('admin.resume.award.store');
            Route::get('{id}/edit', 'AwardController@edit')->name('admin.resume.award.edit');
            Route::put('{id}/update', 'AwardController@update')->name('admin.resume.award.update');
            Route::put('increment', 'AwardController@increment')->name('admin.resume.award.increment');
            Route::put('decrement', 'AwardController@decrement')->name('admin.resume.award.decrement');
            Route::delete('destroy', 'AwardController@destroy')->name('admin.resume.award.destroy');
        });
        Route::group(['prefix' => 'match'], function (){
            Route::get('', 'MatchController@index')->name('admin.resume.match.index');
            Route::get('create', 'MatchController@create')->name('admin.resume.match.create');
            Route::post('store', 'MatchController@store')->name('admin.resume.match.store');
            Route::get('pageList', 'MatchController@pageList')->name('admin.resume.match.pageList');
            Route::get('{id}/edit', 'MatchController@edit')->name('admin.resume.match.edit');
            Route::put('{id}/update', 'MatchController@update')->name('admin.resume.match.update');
            Route::get('{id}/show', 'MatchController@show')->name('admin.resume.match.show');
            Route::put('increment', 'MatchController@increment')->name('admin.resume.match.increment');
            Route::put('decrement', 'MatchController@decrement')->name('admin.resume.match.decrement');
        });
    });
    //多余的
});
